Carbon


MPExit

Header: Multiprocessing.h Carbon status: Supported

Allows a task to terminate itself

void MPExit (
    OSStatus status
);
status

An application-defined value that indicates termination status. This value is sent to the termination message queue in place of the task’s result code.

DISCUSSION

When called from within a preemptive task, the task terminates, and the value indicated by the parameter status is sent to the termination message queue you specified in MPCreateTask. Note that you cannot call MPExit from outside a preemptive task.

VERSION NOTES

Introduced with Multiprocessing Services 1.0.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when MPLibrary 1.0 or later is installed. Exported by CarbonLib 1.0 and later and by MPLibrary 1.0 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/6/2000)